print out the version and binary name in the header comment. Problem
authorJonathan Blandford <jrb@redhat.com>
Wed, 22 Dec 2004 06:20:26 +0000 (06:20 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Wed, 22 Dec 2004 06:20:26 +0000 (06:20 +0000)
Wed Dec 22 01:17:44 2004  Jonathan Blandford  <jrb@redhat.com>

        * queryloaders.c (main): print out the version and binary name in
        the header comment.  Problem reported by Seth Nickell.

gdk-pixbuf/ChangeLog
gdk-pixbuf/queryloaders.c

index 966245365d4be11194c72945f9be4744e953cada..0111c220073820a924238a8212895312915e0884 100644 (file)
@@ -1,3 +1,8 @@
+Wed Dec 22 01:17:44 2004  Jonathan Blandford  <jrb@redhat.com>
+
+       * queryloaders.c (main): print out the version and binary name in
+       the header comment.  Problem reported by Seth Nickell.
+
 2004-12-16  Matthias Clasen  <mclasen@redhat.com>
 
        * === Released 2.6.0 ===
index d35b4d3a059a74e2b34b8cf09d994f2372c801af..849d2b4d326b1d4beb263bb6fd0bc23f77b21144 100644 (file)
@@ -208,6 +208,7 @@ query_module (const char *dir, const char *file)
 int main (int argc, char **argv)
 {
        gint i;
+       gchar *prgname;
 
 #ifdef G_OS_WIN32
        gchar *libdir;
@@ -254,10 +255,13 @@ int main (int argc, char **argv)
 #define PIXBUF_LIBDIR libdir
 
 #endif
-
+       prgname = g_get_prgname ();
        g_printf ("# GdkPixbuf Image Loader Modules file\n"
-               "# Automatically generated file, do not edit\n"
-               "#\n");
+                 "# Automatically generated file, do not edit\n"
+                 "# Created by %s from gtk+-%s\n"
+                 "#\n",
+                 (prgname ? prgname : "gdk-pixbuf-query-loaders"),
+                 GDK_PIXBUF_VERSION);
   
        if (argc == 1) {
 #ifdef USE_GMODULE